#include <cstdio>

int n, k, id;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
inline int read() {
	int ch = getchar(), res = 0;
	while (ch > '9' || ch < '0') ch = getchar();
	while (ch <= '9' && ch >= '0') {
		res = (res << 3) + (res << 1) + ch - '0';
		ch = getchar();
	}
	return res;
}
int main() {
#ifndef ONLINE_JUDGE
#ifdef LOCAL
	freopen("testdata.in", "r", stdin);
	freopen("testdata.out", "w", stdout);
#endif
#ifndef LOCAL
	freopen("movie.in", "r", stdin);
	freopen("movie.out", "w", stdout);
#endif
#endif

	n = read(), k = read(), id = read();
	int mgcd = gcd(n, k);
	printf("%d/%d", k / mgcd, n / mgcd);
	return 0;
}